﻿using System;
using System.Windows;
using System.Windows.Input;

namespace Hibiku.Controls
{
    /// <summary>
    /// Interaction logic for ImageButton.xaml
    /// </summary>
    public partial class ImageButton 
    {
        public static readonly DependencyProperty TextProperty = DependencyProperty.Register("Text", typeof(string), typeof(ImageButton));

        public static readonly DependencyProperty ImageSourceProperty = DependencyProperty.Register("ImageSource", typeof(Uri), typeof(ImageButton));

        public string Text
        {
            get { return (string)GetValue(TextProperty); }
            set
            {
                SetValue(TextProperty, value);
                CommandManager.InvalidateRequerySuggested();
            }
        }

        public Uri ImageSource
        {
            get { return (Uri)GetValue(ImageSourceProperty); }
            set
            {
                SetValue(ImageSourceProperty, value);
                CommandManager.InvalidateRequerySuggested();
            }
        }

        public ImageButton()
        {
            InitializeComponent();
        }
    }
}
